package com.ytzlkaoshi.test4.service.impl;

import com.ytzlkaoshi.test4.mapper.BugsdetailMapper;
import com.ytzlkaoshi.test4.pojo.BugDetail;
import com.ytzlkaoshi.test4.service.BugsdetailService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.sql.Wrapper;
import java.util.List;
@Service
public class BugsdeatailServiceimpl  implements BugsdetailService {

    @Resource
    private BugsdetailMapper bugsdetailMapper;
    @Override
    public List<BugDetail> selectAll(Wrapper wrapper) {
        return bugsdetailMapper.selectList((com.baomidou.mybatisplus.core.conditions.Wrapper<BugDetail>) wrapper);
    }

    @Override
    public BugDetail selectOne(int id) {
        return bugsdetailMapper.selectById(id);
    }

    @Override
    public int insert(BugDetail bugsdetail) {
        return bugsdetailMapper.insert(bugsdetail);
    }

    @Override
    public int update(BugDetail bugsdetail) {
        return bugsdetailMapper.updateById(bugsdetail);
    }

    @Override
    public int delete(int id) {
        return bugsdetailMapper.deleteById(id);
    }
}
